package org.phantom.securityframework.auth.realm;

import java.util.List;

import org.apache.shiro.subject.Subject;
import org.phantom.securityframework.api.Permission;

/**
 * 获取Subject对应的所有的权限
 * 目前securityframework中提供Account和Device两种Subject
 * @author david
 *
 */
public interface SubjectPermissionRealm {

	/**
	 * 获取该subject的所有权限
	 * @param subject
	 * @returnshiro
	 */
	List<Permission> getSubjectPermission(Subject subject);
}
